import router from "@/router/router";

const jumpHelper = {
    jumpToSign:()=>{
        router.push({name:'loginPage'})
    },
    jumpToHelper : ()=>{
        router.push({name:'helperPage'})
    },
    jumpToManager:()=>{
        router.push({name:'managerPage'})
    },
    //userpage内
    jumpToCustomerPage:()=>{
        router.push({name:'customerPage'})
    },
    jumpToDeliverPage:()=>{
        router.push({name:'deliverPage'})
    },
    jumpToAccountPage:()=>{
        router.push({name:'accountPage'})
    },
    //
    jumpToCustomerNewTask:()=>{
        router.push({name:'customerNewTask'})
    },
    jumpToCustomerPublished:()=>{
        router.push({name:'customerPublished'})
    },
    jumpToCustomerDelivering:()=>{
        router.push({name:'customerDelivering'})
    },
    jumpToCustomerDone:()=>{
        router.push({name:'customerDone'})
    },
    jumpToCustomerMessage:()=>{
        router.push({name:'customerMessage'})
    },
    //
    jumpToDeliverGetOffer:()=>{
        router.push({name:'deliverGetOffer'})
    },
    jumpToDeliverDelivering:()=>{
        router.push({name:'deliverDelivering'})
    },
    jumpToDeliverDone:()=>{
        router.push({name:'deliverDone'})
    },
    jumpToDeliverMessage:()=>{
        router.push({name:'deliverMessage'})
    },
    //管理员页面内
    jumpToManageUser:()=>{
        router.push({name:'manageUser'})
    },
    jumpToManageOffer:()=>{
        router.push({name:'manageOffer'})
    },
    jumpToManagerMessage:()=>{
        router.push({name:'managerMessage'})
    }

}

export default jumpHelper